package com.sk.sk_frame_cloud.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sk.sk_frame_cloud.entity.SysUser;
import com.sk.sk_frame_cloud.entity.page.UserPage;
import com.sk.sk_frame_cloud.param.ModifyUserPasswordParam;
import com.sk.sk_frame_cloud.param.SysUserModel;
import com.sk.sk_frame_cloud.param.SysUserParam;
import com.sk.sk_frame_cloud.param.UserParam;
import com.sk.sk_frame_cloud.res.CommonResponse;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author chen
 * @since 2023-04-04 19:46:07
 */
public interface ISysUserService extends IService<SysUser> {

    IPage<SysUserModel> getList(UserPage page);
    /**
     * 根据用户名查询用户
     *
     * @param userName
     * @return
     */
    SysUser selectByAccount(String userName);

    /**
     * 根据用户名查询用户
     *
     * @param userName
     * @return
     */
    SysUser selectByName(String userName);

    CommonResponse<String> add(SysUserParam user);

    CommonResponse<String> deleteUser(Integer user);

    CommonResponse<String> updateUser(SysUserParam sysUser);

    CommonResponse login(UserParam userParam);

//    IPage<SysUserModel> getList(UserPage page);

    CommonResponse getUserInfoVo(String id);

    CommonResponse<String> modifyPassword(ModifyUserPasswordParam passwordParam);

}
